package cn.tedu.tea.web;


public enum ServiceCode {
    OK(200,"操作成功"),
    ERR_NOT_FOUND(404,"路径错误"),
    ERR_PARAMETER(401,"请求参数格式错误"),
    ERR_CONFLICT(409,"操作失败"),
    ERR_FILE_UPLOAD(4000,"文件上传失败");

    private Integer code;
    private String msg;
    ServiceCode(Integer code,String msg){
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode(){
        return code;
    }

    public String getMsg(){
        return msg;
    }
}
